import movies from "../pages/movies/movies"
import addMovie from "../pages/movies/addMovies.js"
import imgs from "../pages/movies/imgs.js"
import updateMovies from "../pages/movies/updateMovies.js"

export default {
    "/addMovies": {
        on() {
            new addMovie({ el: ".movies-container" })
        }
    },
    "/movies": {
        on() {
            new movies({ el: ".movies-container" })
        }
    },
    "/imgs/:_id": {
        on(_id) {
            new imgs({ el: ".movies-container", _id })
        }
    },
    "/updateMovies/:_id": {
        on(_id) {
            new updateMovies({ el: ".movies-container", _id })
        }
    },
}